<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
   <script type="text/javascript" src="../../javascript/jquery-1.9.1.min.js"></script>
  <script src="../../frame/angular/base/angular.js" type="text/javascript"></script>
  <script src="../../js/angular/04-25.js"></script>
</head>
<body ng-app="myApp" ng-controller="myCtrl">
<button ng-click="add()">添加</button>
<table border="1" width="800px" cellpadding="0" cellspacing="0">
  <tr>
    <th>序号</th>
    <th>姓名</th>
    <th>性别</th>
    <th>年龄</th>
    <th>角色</th>
    <th>操作</th>
  </tr>
  <tr ng-repeat="d in data" style="text-align: center">
    <td>{{$index+1}}</td>
    <td>{{d.name}}</td>
    <td>{{d.sex}}</td>
    <td>{{d.age}}</td>
    <td>{{d.role}}</td>
    <td><button ng-click="delete(d.id)">删除</button></td>
  </tr>
</table>
</body>
</html>
